ActionMenuView

(SESL variant) ActionMenuView is a presentation of a series of menu options as a View. It provides several top level options as action buttons while spilling remaining options over as items in an overflow menu. This allows applications to present packs of actions inline with specific or repeating content.

Constructors

Link copied to clipboard
constructor(@NonNull context: @NonNull Context)
constructor(@NonNull context: @NonNull Context, @Nullable attrs: @Nullable AttributeSet)

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Interface responsible for receiving menu item click events if the items themselves do not have individual item click listeners.

Functions

Link copied to clipboard
Dismiss any popups associated with this menu view.
Link copied to clipboard
open fun getMenu(): Menu
Returns the Menu object that this ActionMenuView is currently presenting.
Link copied to clipboard
@Nullable
open fun getOverflowIcon(): @Nullable Drawable
Return the current drawable used as the overflow icon.
Link copied to clipboard
open fun getPopupTheme(): Int
Link copied to clipboard
Returns the default animations to be used for this menu when entering/exiting.
Link copied to clipboard
Hide the overflow items from the associated menu.
Link copied to clipboard
Initializes the menu to the given menu.
Link copied to clipboard
Link copied to clipboard
Check whether the overflow menu is currently showing.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the current menu or null if one has not yet been configured.
Link copied to clipboard
Must be called before the first call to getMenu()
Link copied to clipboard
open fun setOverflowIcon(@Nullable icon: @Nullable Drawable)
Set the icon to use for the overflow button.
Link copied to clipboard
open fun setOverflowReserved(reserveOverflow: Boolean)
Link copied to clipboard
open fun setPopupTheme(@StyleRes resId: Int)
Specifies the theme to use when inflating popup menus.
Link copied to clipboard
open fun setPresenter(presenter: ActionMenuPresenter)
Link copied to clipboard
Show the overflow items from the associated menu.